#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int x, y;
	scanf("%d", &x);
	if (x < 1) y = 3 * x + 1;
	else if (1 <= x && x < 20)
		y = 5 * x + 3;
	else  y = 9 * x - 11;
	printf("x=%d,y=%d\n", x, y);
	return 0;
}